package com.lordjoe.collectiveintelligence;

/**
 * com.lordjoe.collectiveintelligence.ItineryItem
 *
 * @author Steve Lewis
 * @date Mar 24, 2009
 */
public class ItineryItem
{
    public static ItineryItem[] EMPTY_ARRAY = {};
    public static Class THIS_CLASS = ItineryItem.class;

    private final String m_Person;
    private final Flight m_Arrival;
    private final Flight m_Return;

    public ItineryItem(String pPerson, Flight pArrival, Flight pReturn)
    {
        m_Person = pPerson;
        m_Arrival = pArrival;
        m_Return = pReturn;
    }

    public String getPerson()
    {
        return m_Person;
    }

    public Flight getArrival()
    {
        return m_Arrival;
    }

    public Flight getReturn()
    {
        return m_Return;
    }

    @Override
    public String toString()
    {
        StringBuilder sb = new StringBuilder();
        sb.append(getPerson() + "\n");
        sb.append(getArrival().toString() + "\n");
        sb.append(getReturn().toString() + "\n");
 
        return sb.toString();
    }

}
